

local win = commonlib.ShowWindow({
    alignment = "_ct", 
    url = "@script/test/window/test_blockly.html",
    -- url = "@script/test/window/test_input.html",
    -- url = "@script/test/window/test_textarea.html",
    -- url = "@script/test/window/test_text.html",
    -- url = "@script/test/window/test_textarea.html",
    -- url = "@script/test/window/test.html",
});

local function print_element(el)

    local id = el:GetAttrStringValue("id");
    if (id) then
        print("ID", id);
        -- print("Name", el:GetName());
        print("TagName", el:GetTagName());
        -- echo(el:GetAttr(), "Attr");
        -- echo(el:GetCurrentStyle(), "Style");
        print("Window Position", el:GetPosition());
    
        print("\n");
    end
    
    for subel in el:ChildrenIterator() do
        print_element(subel);
    end

end

-- print_element(win)
